package com.mapbased.da;

import org.springframework.jdbc.core.SqlTypeValue;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author chy(Baily)
 * @version 1.0
 */
public class Field
{
    String name;
    int sqlType=SqlTypeValue.TYPE_UNKNOWN;
    private String outputClass;

    public Object getValue( ResultSet rs,int idx)
        throws SQLException
    {

        return rs.getObject(idx);
    }

    public String getName()
    {
        return name;
    }

    public String getOutputClass()
    {

        return outputClass;
    }

    public int getSqlType()
    {
        return sqlType;
    }

    public void setName(String name)
    {
        this.name=name;
    }

    public void setOutputClass(String outputClass)
    {
       // this.outputType=outputType;
        this.outputClass=outputClass;
    }

    public void setSqlType(int sqlType)
    {
        this.sqlType=sqlType;
    }
    //Class internalType;
}
